package com.sf.osms.dep.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.dozer.Mapping;
import org.hibernate.annotations.Polymorphism;
import org.hibernate.annotations.PolymorphismType;

import com.sf.novatar.base.domain.LongIdBean;

@Entity
@Table(name = "wbs_tt_car_code_map")
@Polymorphism(type = PolymorphismType.EXPLICIT)
public class CarCodeMap extends LongIdBean implements Serializable{
	private static final long serialVersionUID = 1L;

	/**
	 * ID
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "ID", unique = true, nullable = false)
	private Long id;
	
	/**
	 * 代理ID
	 */
	@Column(name = "AGENT_ID")
	private Long agentId;
	
	/**
	 * 批次
	 */
	@Column(name = "BATCH_CODE")
	@Mapping("batchCode")
	private String batchCode;
	
	/**
	 * 车标号
	 */
	@Column(name = "CAR_CODE")
	@Mapping("carCode")
	private String carCode;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getAgentId() {
		return agentId;
	}

	public void setAgentId(Long agentId) {
		this.agentId = agentId;
	}

	public String getBatchCode() {
		return batchCode;
	}

	public void setBatchCode(String batchCode) {
		this.batchCode = batchCode;
	}

	public String getCarCode() {
		return carCode;
	}

	public void setCarCode(String carCode) {
		this.carCode = carCode;
	}


	
}
